// 这里放置全局的变量
const isDev = __LOCAL__;
const context = document.getElementById('officeContext').value;
// const context = document.getElementById('context').value;
/*const context = "/flexoffice";*/

// 上传到服务器
//const context = "/flexdingisv";
//访问链接前缀
//const urlPrefix = isDev ? '/mock/' : '/dingisv-1.0.0/app/repair/dingding/';
const urlPrefix = isDev ? '/mock/' : context+'/api/m/office/meeting/';
const approveUrlPrefix = isDev ? '/mock/' : context + '/api/m/approve/';
const token = document.getElementById('token').value;
export default {
  urlPrefix,
  isDev,
  // 这里放置全局的调用的URL
  URLS: {
    //签到二维码路由接口
    murl:urlPrefix+"murl?token=" + token,

    //会议标题
    testUrl:urlPrefix+"query/getSomeInfo.json", 
    //我的会议
    mymeeting:urlPrefix+"query/mymeeting.json", 

    //查看会议详情
    meetingDetail:urlPrefix+"query/meetingDetail.json", 

    //实体类是否存在
    entityIsExist:urlPrefix+"entityIsExist",
    cycleEntityIsExist:urlPrefix+"cycleEntityIsExist",
    taskIsExist:urlPrefix+"taskIsExist",
    memoIsExist:urlPrefix+"memoIsExist",

    //查询会议室list列表数据
    boardroomSetList:urlPrefix+"boardroomSetList?token=" + token, 

    //根据会议室查询会议服务
    getBoardRoomServeTreeData:urlPrefix+"getBoardRoomServeTreeData",

    //会议通知列表
    attendNoticeInfoSetList:urlPrefix+"attendNoticeInfoSetList?token=" + token, 

    //查看会议通知详细信息
    attendNoticeInfo:urlPrefix+"attendNoticeInfo", 

    //保存转本部门
    saveTurnoverInfo:urlPrefix+"saveTurnoverInfo",

    //转本部门数据提交前校验
    checkTurnoverDate:urlPrefix+"checkTurnoverDate",

    //纪要转发功能
    transmitMemo:urlPrefix+"transmitMemo",
    
    //删除会议纪要
    deleteMemoInfo:urlPrefix+"deleteMemoInfo",

    //发送提醒
    sendMeetingRemind:urlPrefix+"sendMeetingRemind", 

    //审批列表
    approval:urlPrefix+"approvalNoticeInfoSetList?token=" + token, 

    //确认参会、请假
    editNoticeInfo:urlPrefix+"editNoticeInfo", 

    //我发布的列表
    createApplyRecordList:urlPrefix+"createApplyRecordList?token=" + token,

    //我参与的列表
    attendApplyRecordList:urlPrefix+"attendApplyRecordList?token=" + token,

    //与我有关的周期会议
    getCycleMeetingList:urlPrefix+"getCycleMeetingList?token=" + token,

    //查询已预定会议室list
    applyBoardroomList:urlPrefix+"applyBoardroomList?token=" + token,

    //查询可以使用的会议室列表数据
    canUseBoardroomList:urlPrefix+"canUseBoardroomList?token=" + token,

    //查询我收到的会通知
    receivedNoticeList:urlPrefix+"receivedNoticeList?token=" + token,

    //查询我发起的会议列表
    sendNoticeList:urlPrefix+"sendNoticeList?token=" + token,

    //修改会议通知状态
    editNoticeInfoStatus:urlPrefix+"editNoticeInfoStatus",

    //修改会议通知状态
    turnoverSave:urlPrefix+"turnoverSave",
    
    //变更记录人
    changMemoUser:urlPrefix+"changMemoUser",

    //根据周期会议id查询周期会议
    getCycleMeetingByCycleId:urlPrefix+"getCycleMeetingByCycleId?token=" + token,

    //新建、编辑查看会议申请详细信息
    applyRecordInfo:urlPrefix+"applyRecordInfo",

    //获取会议创建人和会议名称以及base后台移动端配置信息
    getCreatedbyNameAndApplyInfo:urlPrefix+"getCreatedbyNameAndApplyInfo",

    //保存会议申请信息
    saveInfo:urlPrefix+"saveInfo",
    
    //保存会议室申请信息（未同步会议）
    editSaveWithoutNotice:urlPrefix+"editSaveWithoutNotice",

    //选择已预定周期会议室发起会议
    saveApplyBoardroomCycleMeeting:urlPrefix+"saveApplyBoardroomCycleMeeting",

    //删除已预定但未召开会议室数据
    deleteApplyBoardroom:urlPrefix+"deleteApplyBoardroom",

    //同意、驳回、取消会议申请
    editApplyRecordInfo:urlPrefix+"editApplyRecordInfo",

    //修改会议状态，释放或占用会议室资源
    changeByStatusBpm:urlPrefix+"changeByStatusBpm",

    //是否可发起会议或取消预约
    canStartMeeting:urlPrefix+"canStartMeeting",

    //删除会议申请
    deletApplyRecordInfo:urlPrefix+"deletApplyRecordInfo",

    //回执统计查询
    getReceiptStatistics:urlPrefix+"getReceiptStatistics?token=" + token,

    //查询会议用户参会详细信息列表数据
    approvalNoticeInfoSetList:urlPrefix+"approvalNoticeInfoSetDetailsList?token=" + token,

    //修改会议签到状态
    editSignedInfo:urlPrefix+"editSignedInfo",

    //查询会议纪要list列表数据
    memoInfoList:urlPrefix+"memoInfoList?token=" + token,

    //会议纪要详细信息
    memoInfo:urlPrefix+"memoInfo",

    //新建、编辑会议纪要
    editMemoInfo:urlPrefix+"editMemoInfo",

    //保存会议纪要
    saveMemoInfo:urlPrefix+"saveMemoInfo",

    //会议室管理员
    getBoardroomAdmin: urlPrefix+"getBoardroomAdmin",

    //未签到与未反馈用户
    getAllApprovalUserIds: urlPrefix+"getAllApprovalUserIds",

    //签到二维码
    getQrcodeAttachment: urlPrefix+"getQrcodeAttachment",

    //会议室
    boardRoomInfo: urlPrefix+"boardRoomInfo",

    //全时会议
    getJoinQsMeetingInfo: urlPrefix+"getJoinQsMeetingInfo",

    //签到
    userSigned: urlPrefix+"userSigned",

    //二维码跳转路径
    urlconvert: urlPrefix+"urlconvert",

    //会议任务
    findTaskList: urlPrefix+"findTaskList?token=" + token,

    //任务统计
    taskInfosCount: urlPrefix+"taskInfosCount",

    //任务详情
    getTaskInfo: urlPrefix+"getTaskInfo",

    //修改任务进度
    changeProgress: urlPrefix+"changeProgress",

    //保存任务
    saveTaskInfo: urlPrefix+"saveTaskInfo",

    //删除任务
    deleteTaskInfo: urlPrefix+"deleteTask",

    //签到信息
    getSignedInfo: urlPrefix+"getSignedInfo",

    //修改签到信息
    updateSignInfo: urlPrefix+"updateSignInfo",

    //提前结束会议
    endApplyRecord: urlPrefix+"endApplyRecord",

    //流程表单提交后处理会议状态和会议选人数据
    saveInfoAfterBpm: urlPrefix+"saveInfoAfterBpm",

    //验证会议室时间是否已预约
    validateMeetingTime: urlPrefix+"validateMeetingTime",

    //获取会议预约会议室待办流程列表
    getProcessInfoNoDoList: urlPrefix+"getProcessInfoList?type=1&token=" + token,

    //获取会议预约会议室已办流程列表
    getProcessInfoDoneList: urlPrefix+"getProcessInfoList?type=2&token=" + token,

    //获取会议预约会议室我的流程列表
    getProcessInfoMyList: urlPrefix+"getProcessInfoList?type=3&token=" + token,

    //获取待阅流程列表
    getProcessInfoUnReadList: approveUrlPrefix+"queryProcessPage?type=1&module=meeting&token=" + token,

    //获取已阅流程列表
    getProcessInfoReadList: approveUrlPrefix+"queryProcessPage?type=3&module=meeting&token=" + token,

    //获取草稿箱流程列表
    getProcessInfoDraftList: approveUrlPrefix+"queryProcessPage?type=5&module=meeting&token=" + token,

    //根据流程实例id查询已办
    getDoneTaskListByProcessId: approveUrlPrefix+"getDoneTaskListByProcessId",

    //校验流程
    claimTask: approveUrlPrefix + 'claimTask',

    //查看流程和表单详情
    getMeetingRoomBpmInfo: urlPrefix+"getMeetingRoomBpmInfo",

    //查找流程记录
    queryFlowChart:approveUrlPrefix+"queryFlowChart",

    //查找流程图片
    getFlowImage:approveUrlPrefix+"getFlowImage?processInstanceId=",

    //发起流程
    startProcess:approveUrlPrefix+"startProcess",

    //获取提交的下一个节点
    getNextActivity:approveUrlPrefix+"getNextActivity",

    //获得驳回节点
    getCanBackActivity:approveUrlPrefix+"getCanBackActivity",

    //跳转流程
    getCanJumpActivity:approveUrlPrefix+"getCanJumpActivity",

    //已阅
    readCompleteTask:approveUrlPrefix+"readCompleteTask",

    //批量已阅
    readCompleteTaskBatch:approveUrlPrefix+"readCompleteTaskBatch",

    //传阅
    createReadTask:approveUrlPrefix+"createReadTask",

    //加签
    addSign:approveUrlPrefix+"addSign",

    //驳回
    back:approveUrlPrefix+"back",

    //办理发送流程
    sendFlow:approveUrlPrefix+"sendFlow",

    //结束流程
    forceEnd:approveUrlPrefix+'forceEnd',

    //作废流程
    cancelProcess:approveUrlPrefix+'cancelProcess',

    //转交
    transferFlow:approveUrlPrefix+"transferFlow",

    //跳转
    jump:approveUrlPrefix+"jump",

    //撤销流程
    recall:approveUrlPrefix+"recall",

    //取消流程
    suspendProcess:approveUrlPrefix+"suspendProcess",

    //获取常用语
    getPersonalPhrase:approveUrlPrefix+"getPersonalPhrase",

    //保存常用语
    savePersonalPhrase:approveUrlPrefix+"savePersonalPhrase",

    //催办流程
    urgeFlow:approveUrlPrefix+"urgeFlow",

    //保存草稿箱
    saveForm:approveUrlPrefix+"saveForm",

    //批量办理
    getUndoTaskInfo: approveUrlPrefix+"getUndoTaskInfo",

    //按钮编码获取按钮信息
    getListButtonsByCodes: approveUrlPrefix+"getListButtonsByCodes",
    
    //获取关联流程
    getRelationProcess:approveUrlPrefix+"getRelationProcess",

    invitedHistory:urlPrefix+"/notice/invitedHistory?token=" + token
  	},
    nodataIcon:"../../../fmui/images/noData.png",
    errorIcon:"../../../fmui/images/error.png",
    successIcon:"../../../fmui/images/success.png",
    loadingIcon:"../../../fmui/images/loading.gif",
    imageAttach: context+"/mobile/file/common/viewImage?fid=",
    loadImg: context+"/mobile/file/common/viewImage",
    msgNoData:"../../../fmui/images/state-nodata.png"
};
